<template>
  <div class="loading">
    <van-loading size="24px" vertical>加载中...</van-loading>
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  computed: {
    ...mapState("data", ["alldataLoading"]),
  },
  watch: {
    alldataLoading() {
      if (!this.alldataLoading) {
        this.$router.go(-1);
      }
    },
  },
};
</script>

<style lang="scss" scoped>
.loading {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
</style>
